package com.smile.api;

import com.smile.commons.page.R;
import com.smile.model.request.GetRoleByIdRequest;
import com.smile.model.response.GetRoleByIdResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "smile-plus-standalone-user"
        , contextId = "role",
        path = "/api/user")
public interface RoleApi {

    @PostMapping(value = "/role/getRoleById", produces = MediaType.APPLICATION_JSON_VALUE)
    R<GetRoleByIdResponse> getRoleById(@RequestBody GetRoleByIdRequest getRoleByIdRequest);

}
